﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Diagnostics;

namespace EBookStore.Books
{
    /// <summary>
    /// Book covers types
    /// </summary>
    public enum BookCover : short
    {
        HardCover = 0,
        PaperBack = 1
    }

    /// <summary>
    /// Single book definition
    /// </summary>
    [DebuggerDisplay("Book:{Title} Price:{Price} ISBN:{ISBN}")]    
    public class Book
    {
        #region Properties 
                 
        private string _isbn;

        public string ISBN { get { return _isbn; } }
        public bool Subtitles { get; set; }             
        public int Pages { get; set; }               
        public BookCover CoverType { get; set; }        
        public decimal Price { get; set; }
        public string Title { get; set; }
        public string Authors { get; set; }
        public string PublisherID { get; set; }        

        #endregion

        /// <summary>
        /// Constructor.
        /// </summary>        
        public Book(string ISBN)
        {
            _isbn = ISBN;            
            Subtitles = false;
            Pages = 0;
            CoverType = BookCover.HardCover;
            Price = 0;
            Title = "";            
        }
        
    }
    
   


  
}
